package com.alibaba.stonelab.webxsample.sample.spring;

import org.junit.BeforeClass;
import org.junit.Test;

public class SpringBeanByAnnotationTest {

    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
    }

    @Test
    public void instanceBean() {
        MyApplicationContext ctx = new MyApplicationContext("spring/beans.xml");
        OrderService personService = (OrderService) ctx.getBean("orderService");
        personService.save();
    }
}
